var app = angular.module('webapp');
app.controller('HonorController',['$scope','HonorService',HonorController])
app.directive('viewOrder',function(){
    return {
        restrict:'A',
        template:'<h2>第一个自定义指令</h2>'
    }
});

function HonorController($scope , HonorService){
    $scope.list = [];
    $scope.loadHonor =  function(){
        HonorService.queryAll().then(function(data){
            $scope.list = data;
        },function(err){

        });
    }

    $scope.loadHonor();
}
